package org.dromara.hm.domain.bo;

import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant;
import org.dromara.hm.domain.HmStock;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

import java.math.BigDecimal;

/**
 * 库存数据业务对象 hm_stock
 *
 * @author zy Hu
 * @date 2024-12-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = HmStock.class, reverseConvertGenerate = false)
public class HmStockBo extends BaseEntity {

    /**
     * 库存id
     */
    private Long stockId;

    /**
     * 库存产品id
     */
    @NotNull(message = "库存产品不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long stockProductId;

    /**
     * 产品类型
     */
    private String productType;

    /**
     * 库存产品名称
     */
    private String stockProductName;

    /**
     * 库存数量
     */
    @NotNull(message = "库存数量不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal stockNum;

    /**
     * 库存所在门店
     */
    @NotNull(message = "库存所在门店不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long productDept;

    /**
     * 库存所在门店名称
     */
    private String productDeptName;

    /**
     * 状态
     */
    private String status;

    /**
     * 备注
     */
    private String remark;

    /**
     * 更新库存标识
     */
    private String sign;

    /**
     * 订单id
     */
    private Long orderId;
    /**
     * 客户id
     */
    private Long customerId;

}
